package com.example.sql.manager.config;

import com.example.sql.manager.aspects.TraceIdAspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass({TraceIdAspect.class, org.slf4j.Logger.class, ch.qos.logback.classic.LoggerContext.class})
public class TraceIdConfiguration {

    @Bean
    public TraceIdAspect traceIdAspect() {
        return new TraceIdAspect();
    }
}
